CC = gcc
CFLAGS = -Wall
INCLUDES = -I.

SRCS = main.c \
       logic/pacman.c \
       logic/ghost.c \
       logic/skilltree.c \
       data/map.c \
       data/linkedlist.c \
       ui/leaderboardui.c \
       ui/skilltreeui.c

OBJS = $(SRCS:.c=.o)
TARGET = pacman.exe

$(TARGET): $(OBJS)
	$(CC) $(OBJS) -o $(TARGET)

%.o: %.c
	$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@

clean:
	del /F /Q $(OBJS) $(TARGET)

.PHONY: all clean 